package com.neuedu.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neuedu.common.annotation.Excel;
import com.neuedu.common.core.domain.BaseEntity;

/**
 * 评论对象 comments
 *
 * @author ruoyi
 * @date 2024-12-18
 */
public class Comments extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    private Long commentId;

    /**
     * 帖子ID
     */
    @Excel(name = "帖子ID")
    private Long postId;

    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    private String content;

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public Long getPostId() {
        return postId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("commentId", getCommentId())
                .append("postId", getPostId())
                .append("content", getContent())
                .append("createTime", getCreateTime())
                .append("remark", getRemark())
                .toString();
    }
}
